﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Optimization;

namespace iuPlace.Web.Extensions
{
    public static class BundleMobile
    {
        public static void RegisterMobileBundles(this BundleCollection bundles)
        {
            var css = new Bundle("~/css/mobile", new CssMinify());
            foreach (string file in BundleBase.CSSFilesRequired)
                css.AddFile(file);           
            css.AddFile("~/Content/Mobile/Default/Main.css");
            css.AddFile("~/Content/Mobile/Default/Login.css");
            css.AddFile("~/Content/Mobile/Default/Container.css");
            css.AddFile("~/Content/Mobile/InCity/InCity.css");
            css.AddFile("~/Content/Mobile/Place/Place.css");
            css.AddFile("~/Content/Mobile/Message/Message.css"); 
            bundles.Add(css);
           
            var js = new Bundle("~/js/mobile", new JsMinify()); 
            foreach(string file in BundleBase.JSFilesRequired)
                js.AddFile(file);
            js.AddFile("~/Scripts/Mobile/Mobile.js");
            js.AddFile("~/Scripts/Mobile/Default/Main.js");
            js.AddFile("~/Scripts/Mobile/Default/Login.js");
            js.AddFile("~/Scripts/Mobile/Default/Container.js");
            js.AddFile("~/Scripts/Mobile/InCity/InCity.js");
            js.AddFile("~/Scripts/Mobile/Place/Place.js");
            js.AddFile("~/Scripts/Mobile/Message/Message.js");
            bundles.Add(js);
        }
    }
}